The following error occurred while executing the "$ Error.Clear ()

Please help me

I met this error message by reinstalling Exchange 2013 SP1

Exchange Server Configuration

    Preparing to install ENDED
    Stop ENDED services
    Copying files Exchange ENDED
    Language files ENDED
    Restoring ENDED services
    Language setup ENDED
    Exchange management tools ENDED
    Component 1 of the Mailbox role FAILURE
     The following error occurred while executing the "$ Error.Clear ();
          $ VdirName = "PowerShell";
          $ InternalPowerShellUrl = "http: //" + $ RoleFqdnOrName + "/ powershell";
          New PowerShellVirtualDirectory $ vdirName -Role Mailbox -InternalUrl $ InternalPowerShellUrl $ -DomainController
RoleDomainController -BasicAuthentication: $ false -WindowsAuthentication: $ false -RequireSSL: $ false -WebSiteName "Default
Website "-AppPoolId" MSExchangePowerShellFrontEndAppPool ";
          New PowerShellVirtualDirectory $ vdirName -Role Mailbox -DomainController $ RoleDomainController -BasicAuthentic
ation: $ false -WindowsAuthentication: $ true -RequireSSL: $ true -WebSiteName "Exchange Back End" -Path ($ RoleInstallPath + "
ClientAccess \ PowerShell-Proxy ");
        "" The virtual directory "PowerShell" already exists under "SRV-DOTTA01.dotta.local / Default Web Site."
Parameter name: VirtualDirectoryName ".

Best regards,

M

July 10th, 2015 6:31am

It looks to me as if you have already installed Exchange on this server and setup is having trouble with residue from that.  I recommend you flatten the box, reinstall Windows, and try again.
Free Windows Admin Tool Kit Click here and download it now
July 10th, 2015 2:39pm

Hi Michael,

Thank you for your question.

By the error, when we uninstall Exchange 2013, the powershell virtual directory was not remove correctly, we could run the following command to remove powershell virtual directory, then run setup.exe to check if the issue persist:

Remove-PowerShellVirtualDirectory "Powershell (Default Web Site)"

If there are any questions regarding this issue, please be free to let me know.

Best Regard,

Jim

July 13th, 2015 2:40am

Hello,

Could you help me to fix this follow error ?

PS C:\apps\exch2013> .\ setup /mode:Install /role:ClientAccess,Mailbox /IAcceptExchangeServerLicenseTerms

Welcome to the unattended installation of Microsoft Exchange Server 2013 Service Pack 1
Copying files ...
Copy of the complete file. The installer will now gather additional information needed for installation.
Languages
Management Tools
Mailbox Role: Transport Service
Role Mailbox: Client Access Service
Mailbox Role: Unified Messaging service
Mailbox Role: Mailbox Service
Role Client Access: Front-end transport service
Role Client Access: Client Access front-end service

Performing the verification of Microsoft Exchange Server requirements

    Configuration of the required elements     ENDED
    Prerequisites Analysis                               ENDED
 Install Exchange Server on a domain controller will raise the Exchange Trusted Subsystem privileges for domain administrators.
 For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.WarningInstallExchangeRolesOnDomainController.aspx


Exchange Server Configuration

    Preparing to install                      ENDED
    Stop services                              ENDED 
    Copying files Exchange                ENDED
    Language files                             ENDED
    Restoring services                        ENDED
    Language setup                           ENDED
    Exchange management tools        ENDED
    Component 1 of the Mailbox role   FAILURE
     The following error occurred while executing the "$ Error.Clear ();
          $vdirName = "PowerShell";
          $InternalPowerShellUrl = "http: //" + $RoleFqdnOrName + "/ powershell";
          New PowerShellVirtualDirectory $vdirName -Role Mailbox -InternalUrl $InternalPowerShellUrl -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$false -RequireSSL:$false -WebSiteName "Default Web Site "-AppPoolId" MSExchangePowerShellFrontEndAppPool ";
          New PowerShellVirtualDirectory $vdirName -Role Mailbox -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$true -RequireSSL:$true -WebSiteName "Exchange Back End" -Path ($ RoleInstallPath + "ClientAccess \ PowerShell-Proxy ");
        ":" The virtual directory "PowerShell" already exists under "SRV-DOTTA01.dotta.local / Default Web Site."
Parameter name: VirtualDirectoryName ".

The Exchange Server Setup operation did not complete. For more information, see ExchangeSetup.log

in the <SystemDrive> folder: \ ExchangeSetupLogs.
PS C: \ apps \ exch2013>

Thanks advance;*,

Best regards;

Michael

Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 10:27am

Hello,

Could you help me to fix this follow error ?

PS C:\apps\exch2013> .\ setup /mode:Install /role:ClientAccess,Mailbox /IAcceptExchangeServerLicenseTerms

Welcome to the unattended installation of Microsoft Exchange Server 2013 Service Pack 1
Copying files ...
Copy of the complete file. The installer will now gather additional information needed for installation.
Languages
Management Tools
Mailbox Role: Transport Service
Role Mailbox: Client Access Service
Mailbox Role: Unified Messaging service
Mailbox Role: Mailbox Service
Role Client Access: Front-end transport service
Role Client Access: Client Access front-end service

Performing the verification of Microsoft Exchange Server requirements

    Configuration of the required elements     ENDED
    Prerequisites Analysis                               ENDED
 Install Exchange Server on a domain controller will raise the Exchange Trusted Subsystem privileges for domain administrators.
 For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.WarningInstallExchangeRolesOnDomainController.aspx


Exchange Server Configuration

    Preparing to install                      ENDED
    Stop services                              ENDED 
    Copying files Exchange                ENDED
    Language files                             ENDED
    Restoring services                        ENDED
    Language setup                           ENDED
    Exchange management tools        ENDED
    Component 1 of the Mailbox role   FAILURE
     The following error occurred while executing the "$ Error.Clear ();
          $vdirName = "PowerShell";
          $InternalPowerShellUrl = "http: //" + $RoleFqdnOrName + "/ powershell";
          New PowerShellVirtualDirectory $vdirName -Role Mailbox -InternalUrl $InternalPowerShellUrl -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$false -RequireSSL:$false -WebSiteName "Default Web Site "-AppPoolId" MSExchangePowerShellFrontEndAppPool ";
          New PowerShellVirtualDirectory $vdirName -Role Mailbox -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$true -RequireSSL:$true -WebSiteName "Exchange Back End" -Path ($ RoleInstallPath + "ClientAccess \ PowerShell-Proxy ");
        ":" The virtual directory "PowerShell" already exists under "SRV-DOTTA01.dotta.local / Default Web Site."
Parameter name: VirtualDirectoryName ".

The Exchange Server Setup operation did not complete. For more information, see ExchangeSetup.log

in the <SystemDrive> folder: \ ExchangeSetupLogs.
PS C: \ apps \ exch2013>

Thanks advance;*,

Best regards;

M

July 13th, 2015 3:40pm

Hi Michael,

Did you run the command on this server:

Remove-PowerShellVirtualDirectory "Powershell (Default Web Site)"

If there are any questions regarding this issue, please be free to let me know.

Best Regard,

Jim

Free Windows Admin Tool Kit Click here and download it now
July 14th, 2015 2:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics